﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_add.aspx.cs" Inherits="Web.admin_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>管理员添加</title>

    <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>

    <link href="css/Page.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">
.black_overlay {
	display: none;
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 100%;
	background-color: black;
	z-index:1001;
	-moz-opacity: 0.8;
	opacity:.80;
	filter: alpha(opacity=80);
}
.white_content {
	display: none;
	position: absolute;
	top: 25%;
	left: 25%;
	width: 50%;
	height: 50%;
	padding: 16px;
	border: 1px solid orange;
	background-color: white;
	z-index:1002;
	overflow: auto;
}
</style>
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="border: 1px solid #9abddd;" border="0" cellpadding="0" cellspacing="0"
            width="98%">
            <tr>
                <td colspan="2" class="TitleBar" colspan="left" align="center">
                    管理员添加
                </td>
            </tr>
            <tr>
                <td class="ItemName" align="right">
                    姓名：
                </td>
                <td style="padding-left: 5px" class="ItemCellRight" align="left">
                    <asp:TextBox ID="txtname" runat="server" Width="200px"></asp:TextBox><span style="color: #cd0000;
                        font-size: large;">*</span>
                </td>
            </tr>
            <tr>
                <td class="ItemName" align="right">
                    主管：
                </td>
                <td style="padding-left: 5px" class="ItemCellRight" align="left">
                   <asp:RadioButtonList runat="server" ID="rbtn_role" Style="float: left;" AutoPostBack="true"
                                    RepeatDirection="Horizontal" OnSelectedIndexChanged="rbtn_role_SelectedIndexChanged">
                                    <asp:ListItem Value="0" >否</asp:ListItem>
                                    <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="ItemName" align="right">
                    密码：
                </td>
                <td style="padding-left: 5px; " class="ItemCellRight" align="left">
                    <asp:TextBox ID="txtpasswd" TextMode="Password" runat="server" Width="200px" ></asp:TextBox><span
                        style="color: #cd0000; font-size: large;">*</span>
                </td>
            </tr>
            <tr>
                <td class="ItemName" align="right">
                    部门：
                </td>
                <td style="padding-left: 5px; " class="ItemCellRight" align="left">
                    <asp:DropDownList ID="ddlDepartment" runat="server" TabIndex="1" Style="float: left;">
                    </asp:DropDownList>
              <%--   <a href = "#" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">选择是否是主管</a>--%>
                </td>
            </tr>
            
            
            <tr>
                <td class="ItemName" align="right">
                    系统权限：
                </td>
                <td style="padding-left: 5px" class="ItemCellRight" align="left">
                    <asp:DropDownList ID="ddlRole" runat="server" TabIndex="3">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="ItemName" align="right">
                    选择账户：
                </td>
                <td style="padding-left: 5px" class="ItemCellRight" align="left">
                    <div id="contentPop" runat="server" style="padding: 10px 20px;" />
                </td>
            </tr>
            <tr>
                <td class="ItemName" align="right">
                    选择员工：
                </td>
                <td style="padding-left: 5px" class="ItemCellRight" align="left">
                    <div id="employyeePoP" runat="server" style="padding: 10px 20px;" />
                </td>
            </tr>
            <tr>
                <td align="center" class="Pager" colspan="2">
                    <asp:Button ID="btn_save" runat="server" OnClick="btn_save_Click" Text="添加" />
                    <asp:Button ID="btn_back" runat="server" Text="返回列表" OnClick="btn_back_Click" />
                </td>
            </tr>
        </table>
    </div>
      
    <div id="light" class="white_content">
   <asp:RadioButtonList runat="server" ID="RadioButtonList1"  Style="float: left;"    RepeatDirection="Horizontal"   >
                                    <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                </asp:RadioButtonList>
                                  <div id="employyeePoP1" runat="server"/>
                                <a href = "#" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">确定</a></div>
    <div id="fade" class="black_overlay"></div>
    </form>
</body>
</html>
